package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.PrescriptionVisit;
import com.ruoyi.system.domain.SysPrescriptionlist;
import org.springframework.stereotype.Repository;

/**
 * 处方信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Repository
public interface SysPrescriptionlistMapper 
{
    /**
     * 查询处方信息
     * 
     * @param prescriptionId 处方信息主键
     * @return 处方信息
     */
    public SysPrescriptionlist selectSysPrescriptionlistByPrescriptionId(Long prescriptionId);

    /**
     * 查询处方信息列表
     * 
     * @param sysPrescriptionlist 处方信息
     * @return 处方信息集合
     */
    public List<SysPrescriptionlist> selectSysPrescriptionlistList(SysPrescriptionlist sysPrescriptionlist);

    /**
     * 新增处方信息
     * 
     * @param sysPrescriptionlist 处方信息
     * @return 结果
     */
    public int insertSysPrescriptionlist(SysPrescriptionlist sysPrescriptionlist);

    /**
     * 修改处方信息
     * 
     * @param sysPrescriptionlist 处方信息
     * @return 结果
     */
    public int updateSysPrescriptionlist(SysPrescriptionlist sysPrescriptionlist);

    /**
     * 删除处方信息
     * 
     * @param prescriptionId 处方信息主键
     * @return 结果
     */
    public int deleteSysPrescriptionlistByPrescriptionId(Long prescriptionId);

    /**
     * 批量删除处方信息
     * 
     * @param prescriptionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysPrescriptionlistByPrescriptionIds(Long[] prescriptionIds);

    public List<PrescriptionVisit> selectPatientNameByVisitId(PrescriptionVisit prescriptionVisit);
}
